package com.cpit.qualitycontrol.dao;

import com.cpit.qualitycontrol.entity.DeviceType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 *
 * @author Hull
 * @date 2017/9/28
 */
public interface DeviceTypeRepository extends JpaRepository<DeviceType, Long> {
    @Override
    DeviceType save(DeviceType deviceType);
    DeviceType findByName(String name);
    Page<DeviceType> findByNameContaining(String name, Pageable pageable);
    @Override
    Page<DeviceType> findAll(Pageable pageable);
    List<DeviceType> findDeviceTypeByIdIn(List<Long> longList);
}
